package com.hs.sfzy.entity;


import com.fasterxml.jackson.annotation.JsonFormat;
import org.springframework.format.annotation.DateTimeFormat;

import java.util.Date;

public class Publicity {

  private long id;
  private String name;
  private String publicityText;
  @JsonFormat(pattern = ("yyyy-MM-dd"),timezone = ("GMT+8"))
  @DateTimeFormat(pattern = ("yyyy-MM-dd"))
  private Date createTime;


  public Publicity() {
  }

  public Publicity(long id, String name, String publicityText, Date createTime) {
    this.id = id;
    this.name = name;
    this.publicityText = publicityText;
    this.createTime = createTime;
  }

  /**
   * 获取
   * @return id
   */
  public long getId() {
    return id;
  }

  /**
   * 设置
   * @param id
   */
  public void setId(long id) {
    this.id = id;
  }

  /**
   * 获取
   * @return name
   */
  public String getName() {
    return name;
  }

  /**
   * 设置
   * @param name
   */
  public void setName(String name) {
    this.name = name;
  }

  /**
   * 获取
   * @return publicityText
   */
  public String getPublicityText() {
    return publicityText;
  }

  /**
   * 设置
   * @param publicityText
   */
  public void setPublicityText(String publicityText) {
    this.publicityText = publicityText;
  }

  /**
   * 获取
   * @return createTime
   */
  public Date getCreateTime() {
    return createTime;
  }

  /**
   * 设置
   * @param createTime
   */
  public void setCreateTime(Date createTime) {
    this.createTime = createTime;
  }

  public String toString() {
    return "Publicity{id = " + id + ", name = " + name + ", publicityText = " + publicityText + ", createTime = " + createTime + "}";
  }
}
